package com.x86.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2022/4/13 13:54
 */
@ApiModel(value = "用户登录日志")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_login_log")
public class UserLoginLog implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "id")
    private Integer id;

    @TableField(value = "ip")
    @ApiModelProperty(value = "ip地址")
    private String ip;

    @TableField(value = "`time`")
    @ApiModelProperty(value = "登录时间")
    private String time;

    @TableField(value = "address")
    @ApiModelProperty(value = "ip地址所属地")
    private String address;

    @TableField(value = "device")
    @ApiModelProperty(value = "登录设备")
    private String device;

    @TableField(value = "os")
    @ApiModelProperty(value = "登录系统")
    private String os;

    @TableField(value = "userid")
    @ApiModelProperty(value = "用户id")
    private Integer userid;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_IP = "ip";

    public static final String COL_TIME = "time";

    public static final String COL_ADDRESS = "address";

    public static final String COL_DEVICE = "device";

    public static final String COL_OS = "os";

    public static final String COL_USERID = "userid";
}